
// AdaptorDlg.h : header file
//

#pragma once

#include "adaptorserver.h"
#include "AdaptorDlgBase.h"

#include "orderlink.h"
#include "marketdatalink.h"

// CAdaptorDlg dialog
class CAdaptorDlg : public AdaptorDlgBase
{
// Construction
public:
	CAdaptorDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_ADAPTOR_DIALOG };

	virtual void addMessage(string);

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	AdaptorServer		*mAdaptorServer;
	CListBox			*mMessageArea;
	int					mMessageCount;
	OrderLink			*mOrderLink;
	MarketDataLink		*mMarketDataLink;
	CButton				*mOkButton, *mCancelButton;
	bool				mStatus;
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOk();
	afx_msg void OnEnChangeEdit1();
};
